﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Lucene.Net;

namespace LuceneNet
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void lblFilePath_Click(object sender, EventArgs e)
        {
            FolderBrowserDialog folder = new FolderBrowserDialog();
            folder.Description = "选择索引存放的路径";
            folder.RootFolder = Environment.SpecialFolder.MyComputer;
            DialogResult result = folder.ShowDialog();
            string folderPath = string.Empty;
            if (result == DialogResult.OK)
            {
                folderPath = folder.SelectedPath;
                this.lblFilePath.Text = folderPath;
            }
            else
            {
                this.lblFilePath.Text = "未选择";
            }
        }
        /// <summary>
        /// 创建Lucene索引
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnCreateIndex_Click(object sender, EventArgs e)
        {





        }
    }
}
